package com.ojoin.trade.common_core.web.service;

import java.util.HashMap;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.service.BaseService;
import com.ojoin.trade.common_core.web.domain.TbFactoringOperator;

/**
 * 保理员服务接口
 * @author guoting
 *
 */
public interface FactoringOperatorBaseService extends BaseService<TbFactoringOperator> {
	
	/**
	 * 插入保理员信息
	 * @param operatorvo
	 * @return
	 * @throws BusinessException
	 */
	public int insertOperator(TbFactoringOperator operatorvo) throws BusinessException;
	
	/**
	 * 根据用户名查询保理员信息
	 * @param name
	 * @param pwd
	 * @return
	 * @throws BusinessException
	 */
	public TbFactoringOperator queryOperatorUserByName(String name)
			throws BusinessException;
	
	/**
	 * 根据用户名和密码查询保理员信息(T0000023)
	 * @param name
	 * @param pwd
	 * @return
	 * @throws BusinessException
	 */
	public TbFactoringOperator queryOperatorUserByNameAndPwd(String name, String pwd)
			throws BusinessException;
	
	/**
	 * 查询保理员权限Map
	 * @param powertype
	 * @return
	 * @throws BusinessException
	 */
	public HashMap<String, String> queryOperatorPowertypeMap(String powertype) throws BusinessException;
	
}
	
